76. Araxis Merge File Comparison Report

Produced by Araxis Merge on 2023-03-13 03:00:44 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

76.1 Files compared

#LocationFileLast Modified
1Porto v4.0.4/Porto Theme/app/code/Mageplaza/LayeredNavigation/view/frontend/templates/layerfilter.phtml2022-04-22 07:34:10 +0000
2Porto v4.0.5/Porto Theme/app/code/Mageplaza/LayeredNavigation/view/frontend/templates/layerfilter.phtml2022-12-08 01:34:28 +0000

76.2 Comparison summary

DescriptionBetween
Files 1 and 2
Text BlocksLines
Unchanged6108
Changed512
Inserted00
Removed00

76.3 Comparison options

WhitespaceConsecutive whitespace is treated as a single space
Character caseDifferences in character case are significant
Line endingsDifferences in line endings (CR and LF characters) are ignored
CR/LF charactersNot shown in the comparison detail
Active line-pairing rules

76.4 Active regular expressions

No regular expressions were active.

76.5 Comparison detail

1 <?php 1 <?php
2 /** 2 /**
3  * Mageplaza 3  * Mageplaza
4  * 4  *
5  * NOTICE OF LICENSE 5  * NOTICE OF LICENSE
6  * 6  *
7  * This source file is subject to the Mageplaza.com license that is 7  * This source file is subject to the Mageplaza.com license that is
8  * available through the world-wide-web at this URL: 8  * available through the world-wide-web at this URL:
9  * https://www.mageplaza.com/LICENSE.txt 9  * https://www.mageplaza.com/LICENSE.txt
10  * 10  *
11  * DISCLAIMER 11  * DISCLAIMER
12  * 12  *
13  * Do not edit or add to this file if you wish to upgrade this extension to newer 13  * Do not edit or add to this file if you wish to upgrade this extension to newer
14  * version in the future. 14  * version in the future.
15  * 15  *
16  * @category    Mageplaza 16  * @category    Mageplaza
17  * @package     Mageplaza_LayeredNavigation 17  * @package     Mageplaza_LayeredNavigation
18  * @copyright   Copyright (c) Mageplaza (https://www.mageplaza.com/) 18  * @copyright   Copyright (c) Mageplaza (https://www.mageplaza.com/)
19  * @license     https://www.mageplaza.com/LICENSE.txt 19  * @license     https://www.mageplaza.com/LICENSE.txt
20  */ 20  */
21  21 
22 /** @type \Mageplaza\LayeredNavigation\Model\Layer\Filter\Attribute $filter */ 22 /** @type \Mageplaza\LayeredNavigation\Model\Layer\Filter\Attribute $filter */
23 $filter = $this->getFilter(); 23 $filter = $this->getFilter();
24 $attributeCode = $filter->getRequestVar(); 24 $attributeCode = $filter->getRequestVar();
25  25 
26 /** @type \Mageplaza\Layerednavigation\Model\Layer\Filter $filterModel */ 26 /** @type \Mageplaza\Layerednavigation\Model\Layer\Filter $filterModel */
27 $filterModel = $this->helper(\Mageplaza\LayeredNavigation\Helper\Data::class)->getFilterModel(); 27 $filterModel = $this->helper(\Mageplaza\LayeredNavigation\Helper\Data::class)->getFilterModel();
28 ?> 28 ?>
29 <ol class="items"> 29 <ol class="items">
30     <?php /** @type \Magento\Catalog\Model\Layer\Filter\Item[] $filterItems */ 30     <?php /** @type \Magento\Catalog\Model\Layer\Filter\Item[] $filterItems */
31     foreach ($filterItems as $filterItem) : ?> 31     foreach ($filterItems as $filterItem)
: ?>
32         <li class="item"> 32         <li class="item">
33             <?php if ($filterModel->isSliderTypes($filter)) : ?> 33             <?php if ($filterModel->isSliderTypes($filter))
: ?>
34                 <div id="ln_slider_container_<?= /** @noEscape */ $attributeCode ?>" class="ln_slider_container"> 34                 <div id="ln_slider_container_<?= /** @noEscape */ $attributeCode ?>" class="ln_slider_container">
35                     <div id="ln_slider_<?= /** @noEscape */ $attributeCode ?>"></div> 35                     <div id="ln_slider_<?= /** @noEscape */ $attributeCode ?>"></div>
36                     <div id="ln_slider_text_<?= /** @noEscape */ $attributeCode ?>"></div> 36                     <div id="ln_slider_text_<?= /** @noEscape */ $attributeCode ?>"></div>
37                 </div> 37                 </div>
38             <?php else : ?> 38             <?php else
: ?>
39                 <?php if ($filterItem->getCount() > 0) : ?> 39                 <?php if ($filterItem->getCount() > 0)
: ?>
40                     <input type="<?= /** @noEscape */ $filterModel->isMultiple($filter) ? 'checkbox' : 'radio' ?>" 40                     <input type="<?= /** @noEscape */ $filterModel->isMultiple($filter) ? 'checkbox' : 'radio' ?>"
41                         <?= /** @noEscape */ $filterModel->isMultiple($filter) ? '' : 'name="' . $filter->getRequestVar() . '"' ?> 41                         <?= /** @noEscape */ $filterModel->isMultiple($filter) ? '' : 'name="' . $filter->getRequestVar() . '"' ?>
42                         <?= /** @noEscape */ $filterModel->isSelected($filterItem) ? 'checked="checked"' : '' ?> /> 42                         <?= /** @noEscape */ $filterModel->isSelected($filterItem) ? 'checked="checked"' : '' ?> />
43                 <?php else : ?> 43                 <?php else
: ?>
44                     <input type="<?= /** @noEscape */ $filterModel->isMultiple($filter) ? 'checkbox' : 'radio' ?>" 44                     <input type="<?= /** @noEscape */ $filterModel->isMultiple($filter) ? 'checkbox' : 'radio' ?>"
45                            disabled="disabled"/> 45                            disabled="disabled"/>
46                 <?php endif; ?> 46                 <?php endif; ?>
47                 <a href="<?= /** @noEscape */ $block->escapeUrl($filterModel->getItemUrl($filterItem)) ?>"> 47                 <a href="<?= /** @noEscape */ $block->escapeUrl($filterModel->getItemUrl($filterItem)) ?>">
48                     <?= /** @noEscape */ $filterItem->getLabel() ?> 48                     <?= /** @noEscape */ $filterItem->getLabel() ?>
49                     <?php if ($filterModel->isShowCounter($filter)) : ?> 49                     <?php if ($filterModel->isShowCounter($filter))
: ?>
50                         <span class="count"><?= /** @noEscape */ $filterItem->getCount() ?> 50                         <span class="count"><?= /** @noEscape */ $filterItem->getCount() ?>
51                             <span class="filter-count-label"> 51                             <span class="filter-count-label">
52                                 <?= /** @noEscape */ ($filterItem->getCount() === 1) ? 'item' : 'items' ?> 52                                 <?= /** @noEscape */ ($filterItem->getCount() === 1) ? 'item' : 'items' ?>
53                             </span> 53                             </span>
54                         </span> 54                         </span>
55                     <?php endif; ?> 55                     <?php endif; ?>
56                 </a> 56                 </a>
57             <?php endif; ?> 57             <?php endif; ?>
58         </li> 58         </li>
59     <?php endforeach ?> 59     <?php endforeach ?>
60 </ol> 60 </ol>